package com.carleasoft.mps.adu.business.role.bean.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author ztm
 * @since 2021-09-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("m_authority_role")
@ApiModel(value="AuthorityRole对象", description="角色表")
public class AuthorityRoleEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色id")
    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "角色编码")
    @TableField("ROLE_CODE")
    private String roleCode;

    @ApiModelProperty(value = "角色名称")
    @TableField("ROLE_NAME")
    private String roleName;

    @ApiModelProperty(value = "0-超级管理员角色，1-系统管理员角色，2-组织及组织分类角色，3-组织内使用角色，4-专属自定义默认角色，5-系统默认角色")
    @TableField("ROLE_TYPE")
    private Integer roleType;

    @TableField("DEPT_CODE")
    private String deptCode;

    @TableField("ORGANIZATION_CODE")
    private String organizationCode;

    @TableField(value = "CREATE_PERSON_CODE",fill = FieldFill.INSERT)
    private String createPersonCode;

    @TableField(value = "CREATE_PERSON_NAME",fill = FieldFill.INSERT)
    private String createPersonName;

    @TableField(value = "CREATE_TIME",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "UPDATE_PERSON_CODE",fill = FieldFill.UPDATE)
    private String updatePersonCode;

    @TableField(value = "UPDATE_PERSON_NAME",fill = FieldFill.UPDATE)
    private String updatePersonName;

    @TableField(value = "UPDATE_TIME",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "描述角色的备注")
    @TableField("REMARK")
    private String remark;


}
